/*
 * Decompiled with CFR 0.150.
 */
package com.gys.common.enums;

public enum PayMethod {
    P1("1000", "\u73b0\u91d1"),
    P2("2000", "\u94f6\u8054"),
    P3("3001", "\u5fae\u4fe1"),
    P4("3002", "\u652f\u4ed8\u5b9d"),
    P5("4000", "\u533b\u4fdd"),
    P6("8000", "\u50a8\u503c\u5361");

    private String code;
    private String name;

    private PayMethod(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String code) {
        for (PayMethod form : PayMethod.values()) {
            if (!form.getCode().equals(code)) continue;
            return form.name;
        }
        return null;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

